<?php
	require '../modelo/comentar.php';
	$obj = new comentar();
	$datos = $obj->all();
?>
<!DOCTYPE html>
<html lang='es'>
	<head>
		<title>Administrador</title>
		<meta charset='utf8'>
		<link rel="stylesheet" type="text/css" href="css/admin.css">

	</head>
<body>
	<div id="contenedor">
		<input id="tab-1" type="radio" name="radio-set" class="tab-selector-1" checked="checked" />
    <label for="tab-1" class="tab-label-1"><strong>Inicio</strong></label>
    
    <input id="tab-2" type="radio" name="radio-set" class="tab-selector-2" />
    <label for="tab-2" class="tab-label-2"><strong>Comentarios</strong></label>
    
    <input id="tab-3" type="radio" name="radio-set" class="tab-selector-3" />
    <label for="tab-3" class="tab-label-3"><strong>Productos</strong></label>
    
    <input id="tab-4" type="radio" name="radio-set" class="tab-selector-4" />
    <label for="tab-4" class="tab-label-4"><strong>Usuarios</strong></label>
	
	<div class="content">
	<div class="content-1">
		<img src="imagenes/logo.jpg">
</div>
 <div class="content-2">
 	<center>
            	<?php if(sizeof ($datos) >0): ?>

	<table border='10'>
		<tr>
			<th>N° CLIENTE</th>
			<th>NOMBRE</th>
			<th>FECHA</th>
			<th>CORREO</th>
			<th>COMENTARIO</th>	
			<th>IMAGEN</th>	
		</tr>
	<?php foreach ($datos as $row): ?>
		<tr>
			<td align="center">
				<?php echo $row ['id_cm']; ?>
			</td>
			<td>
				<?php echo $row ['nombre_cm']; ?>
			</td>

			<td align="center">
				<?php echo $row ['fecha_cm']; ?>
			</td>

			<td>
				<?php echo $row ['correo_cm']; ?>
			</td>

			<td>
				<?php echo $row ['comentarios_cm']; ?>
			</td>

			<td align="center">
				<?php echo $row ['imagen_cm']; ?>
			</td>
		</tr>

		<?php endforeach; ?>
		
	</table>
					<a href="comentarios.php">Agregar</a>
					<a href="modificar.php">Editar</a>
					<a href="delete.php">Eliminar</a>
<?php endif; ?>
</center>
        </div>
        <div class="content-3">
            contenido3
        </div>
        <div class="content-4">
                       
        </div>
    </div>
</div><!--
<div id="footer">
		<ul>
			<li>Todos los derechos reservados</li>
				<li>Uniformes Rossma</li>
					<li>Desing: Team 2</li>
					</ul>
				</div>-->
</body>	
</html>